package service.impl;

import entity.Paper;
import entity.User;
import service.GenerateMathService;

/** GenerateMath controller 层 试卷生成 */
public class GenerateMath {
  /**
   * generateMathPaper 试卷生成函数
   *
   * @param user 用户
   * @return Paper 试卷
   */
  public static Paper generateMathPaper(User user) {
    GenerateMathService generateMathService = GenerateFactory.generateMath(user);

    return generateMathService.GeneratePaper();
  }
}
